<script type="text/javascript">
	function newUserForm(){
		$('#hiddentask').val('newUserForm');
		$('#hiddenid').val(0);
		$('#hiddenform').submit();
	}
</script>
<div class="ui-corner-all"><?php include "view/topmenu.php"; ?></div>
<div class="block">
	<?php HTMLUtil::WriteActionButton(" Create New User ", "newUserForm()") ?>
	<table border="0" cellpadding="3" cellspacing="0" width="400">
		<tr><th class="ui-widget-content ui-corner-all">User</th><th class="ui-widget-content ui-corner-all">Group</th></tr>
<?php
	foreach($users as $u){
		$n = $u->getName();
		$g = $u->getGname();
		echo "<tr><td class=\"ui-widget-content ui-corner-all\">$n</td><td class=\"ui-widget-content ui-corner-all\">$g</td></tr>\n";
	}
?>
	</table>
</div>